import { fileURLToPath } from 'url'
import { dirname, join } from 'path'

const __filename = fileURLToPath(import.meta.url)
const __dirname = dirname(__filename)

export const PORT = process.env.PORT || 3001
export const DATA_DIR = join(__dirname, '..', '..', 'data')
export const JWT_SECRET = process.env.JWT_SECRET || 'dev-secret-change-me'
export const ACCESS_TOKEN_EXPIRES_IN = process.env.ACCESS_TOKEN_EXPIRES_IN || '2h'
